/*
 * jobbase.h
 *
 *  Created on: 2012-5-21
 *      Author: epmm
 */

#ifndef JOBBASE_H_
#define JOBBASE_H_

class CJobBase
{
public:
	class IResult
	{
	public:
		virtual ~IResult()
		{

		}
		virtual int Result(CJobBase* pJob) = 0;
	};
public:
	IResult* m_pResult;
public:
	CJobBase();
	virtual ~CJobBase();

public:
	virtual int Process();
	virtual int SetResultObject(IResult* pResult);
 };

#endif /* JOBBASE_H_ */
